<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('列表')" />
</head>
<body>
  <div th:fragment="paeaRiskItemForModel">
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">整改建议</h4>
                </div>
                <div class="modal-body">
                    <textarea id="auditSuggest" rows="4" style="width:100%" placeholder="请输入整改建议..."></textarea>
                    <div th:style="'display:block'">
                        <label class="control-label">风险点：</label>
                        <div style="height: 120px;overflow-x: scroll" >
                            <div id="paeaErPoint" class="ztree control-label" th:required="required"></div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="riskAddBatchSubmit()">提交</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li class="select-time">
                                <p>交易日期：</p>
                                <input type="text" class="time-input" id="startTrDate" name="startTrDate" required/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTrDate" name="endTrDate"/>
                            </li>
                            <li>
                                <p>机构号：</p>
                                <input name="brCode" style="width: 60%"  id="treeId" type="text" class="form-control">
                            </li>
                            <li>
                                <!--<p>状态：</p>-->
                                状态：
                                <select id="status" style="width: 60%" name="status" th:with="type=${@dict.getType('paea_risk_item_status')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                    <option value="">所有</option>
                                </select>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="tableSerch('0')"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                    <input type="hidden" name="impType" id="impType"/>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbar" role="group">
               <a class="btn btn-info" onclick="exportItem()" shiro:hasPermission="oms:paeaRiskItem:exportItem">
                    <i class="fa fa-download"></i> 导出预警
               </a>&nbsp;
                <a id="riskInfo1" class="btn btn-success" onclick="checkAll()">
                    <i class="fa"></i> 全选
                </a>&nbsp;
                <a id="riskInfo2"  class="btn btn-success" onclick="uncheckAll()">
                    <i class="fa"></i> 取消全选
                </a>&nbsp;
               <a id="riskInfo3" class="btn btn-success" onclick="doConfirmBatch()" shiro:hasPermission="oms:paeaRiskItem:doConfirmBatch">
                    <i class="fa"></i> 批量提交
                </a>&nbsp;
                <a id="riskInfo4" class="btn btn-success" onclick="showRiskAdd(null)" shiro:hasPermission="oms:paeaRiskItem:export">
                    <i class="fa"></i> 创建差错
                </a>&nbsp;
                <a id="riskInfo5"  class="btn btn-success" onclick="riskAddBatch()" shiro:hasPermission="oms:paeaRiskItem:export">
                    <i class="fa"></i> 批量创建差错
                </a>&nbsp;
            </div>
            <div class="col-sm-12 select-table table-striped table-hover table table-condensed">
                <table id="bootstrap-table"></table>
            </div>
            <div class="col-sm-12 select-table table-striped table-hover table table-condensed">
                <p>风险预警相关流水明细</p>
                <table id="bootstrap-table-detail"></table>
            </div>
        </div>
    </div>
  </div>
</body>
</html>